package com.manlost.upload;

import org.springframework.beans.factory.BeanFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.manlost.upload.common.UploadServiceFactory;

/**
 * 类UploadServiceLocator.java的实现描述：TODO 类实现描述
 * 
 * @author xiaochuan.luxc 2012-5-6 下午1:44:40
 */
public class UploadServiceLocator {

    protected final static BeanFactory ctx;

    static {
        String[] ctxs = new String[] { "biz/spring/spring_upload_service_locator.xml" };
        ClassPathXmlApplicationContext appContext = new ClassPathXmlApplicationContext(ctxs);
        ctx = appContext;
    }

    public static AblumUploadService getAblumUploadService() {
        return ctx.getBean(UploadServiceFactory.class).getAblumUploadService();
    }
}
